package com.zhiqingchun.dao.comment.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.zhiqingchun.pojo.CommentDO;

public class CommentRowMapper implements RowMapper<CommentDO> {

	@Override
	public CommentDO mapRow(ResultSet rs, int rowNum) throws SQLException {
		CommentDO commentDO = new CommentDO();
		commentDO.setId(rs.getInt("id"));
		commentDO.setUsrId(rs.getInt("usr_id"));
		return commentDO;
	}

}
